<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>出库打印</title>
<style media="print">
	.menu{display:none;}
	.list td,.list th{ height:26px; line-height:26px; text-align:center;}
	.list th{ font-weight:bold;}
    .pageContent{
      width: 1075px;
      height: 1200px;
      border: 1px #000 solid;
      overflow: hidden;
      padding: 0;
      word-break:break-all;
    }
    .a4-broadwise{
      width: 1569px;
      height: 1073px;
      border: 1px #000 solid;
      overflow: hidden;
      padding: 0;
      word-break:break-all;
    }
    .print{
      position: fixed;
      top: 1%;
      right: 10%;
    }
</style>
<style>
	.list td,.list th{ height:26px; line-height:26px; text-align:center;}
	.list th{ font-weight:bold;}
    .shou span{width: 48%;float: left;text-align: left; padding-left: 10px;font-weight:bold;}
    .pageContent{
      width: 780px;
      height: auto;
      border: 1px #000 solid;
      overflow: hidden;
      padding: 30xp 30px 30px 30px;
    }
</style>
<body>
<div class="menu">
	<input type="button" value="打 印" onclick="window.print()"/><br><br>
</div>
{if(!empty($ouList)) /}    
<div class="pageContent">
	
    <table width="100%" border="1" style="border-collapse:collapse;" class="list">
        <thead>       
            <tr>
                <th>订单号</th>
<!--                <th>床号</th>-->
                <th>尺码</th>
                <th>扎号</th>
                <th>件数</th> 
            </tr>
        </thead>
        <tbody>
            {foreach $ouList as $kk=>$vv}
                {foreach $vv as $k=>$v}
                <tr class="C-{$v['size_name']}">
                    {if($k==0)}
                    
                    <td rowspan="{:count($vv)}">{$v['client_ordernum']}</td>
                    {/if}
                    <td>{$v['size_name']}</td>
                    <td>{$v['zhahao']}</td>
                    <td>{$v['jianshu']}</td>
                </tr>
                {/foreach}
            {/foreach}
        </tbody>
    </table>
    <table width="100%" border="1" style="border-collapse:collapse;" class="list">
        {foreach $osList as $kk=>$vv}
        
        <thead>
            <tr><td colspan="5">{$kk}</td></tr>
            <tr>
                <th colspan="2">下单数</th>
                <th colspan="2">裁剪数</th>
                <th>备注</th>
            </tr>
        </thead>
        <tbody>
            <tr>
				<td width="7%">总数</td>
				<td width="7%">{:array_sum(array_column($vv[0], 'order_count'))}</td>
				<td width="7%">总数</td>
				<td width="7%">{:array_sum(array_column($vv[0], 'shicai_count'))}</td>
                <td width="7%" rowspan="{:count($vv[0])+1}" >{$vv[1]}</td>
                {foreach $vv[0] as $k=>$v}
                <tr class="C-{$v['size_name']}">
                    <td>{$v['size_name']}</td>
                    <td>{$v['order_count']}</td>
                    <td>{$v['size_name']}</td>
                    <td>{$v['shicai_count']}</td>
                </tr>
                {/foreach}
            {/foreach}
        </tbody>
    </table>
</div>
{/if}
</body>
</html>